-- CALC_MATERIAL_TO_NUMBER

return function(items)
    local materialList = FormulaM.invoke("GET_BLOODY_TESTBED_MATERIAL");

    local n = 0;
    for k, v in pairs(items) do
        local index = table.indexOf(materialList, v);
        n = n + bit.blshift(1, index - 1);
    end

    return n;
end